<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/jquery.min.js"></script>

</head>
<body>

    <button id="btn" onclick="send()">点击执行ajax</button>

    <script>
        // $(function () {
            function send() {
                $.ajax({
                    url:"http://localhost:8080/back/global",
                    dataType:'json',
                    success:function (res) {
                        console.log("全局拦截的数据："+res);
                    }
                })
            }
        // })
    </script>
</body>
</html>